﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Banner_Manager.aspx.cs"
    Inherits="ProjectQuaDep.Admin.Banners.Banner_Manager" %>

<%@ Register Src="../ControlAdmin/header-html.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../ControlAdmin/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="../ControlAdmin/Footer.ascx" TagName="Footer" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<uc1:header ID="header1" runat="server" />
<body>
    <form id="form1" runat="server">
    <div class="wp100">
        <!--end header-->
        <uc2:Header ID="Header2" runat="server" />
        <div class="sanpham_vc">
            <div class="top_content">
                <h2 class="wp_auto">
                    Banner<span>Những thông tin và hoạt động của hệ thống liên tục được cập nhật</span></h2>
            </div>
            <!--end top_content-->
            <div class="wp_auto tin_tuc">
                <div class="clear">
                </div>
                <div class="contentadmin">
                    <asp:Panel ID="pnUpdate" runat="server" Visible="false">
                        <fieldset style="padding: 10px">
                            <legend><b>XỬ LÝ THÔNG TIN</b></legend>
                            <table width="100%" style="line-height: 30px">
                                <tr>
                                    <td class="style1">
                                        Mã:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblID" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Tiêu Đề:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTitle" runat="server" Width="100%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Mô tả:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDesc" runat="server" Width="100%" Height="61px" 
                                            TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Link:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtLink" runat="server" Width="100%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Ảnh:
                                    </td>
                                    <td>
                                        <hr />
                                        <b>LINK ẢNH: </b><asp:TextBox ID="txtImages" runat="server" Width="100%"></asp:TextBox><br />
                                        <iframe src="/Admin/MediaUpload.aspx" scrolling="no" frameborder="0" width="100%">
                                        </iframe>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Thể loại:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlType" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Cỡ Ảnh:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSize" runat="server" Width="100%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Ghi chú:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNote" runat="server" Width="100%" Height="92px" 
                                            TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Sử Dụng:
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckSelect" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                    </td>
                                    <td>
                                        <asp:Button ID="cmdUpdate" runat="server" Text="Cập nhật" 
                                            onclick="cmdUpdate_Click" />
                                        &nbsp;<asp:Button ID="cmdHide" runat="server" OnClick="cmdHide_Click" Text="Ẩn đi" />
                                        &nbsp;<asp:Label ID="lblMs" runat="server" ForeColor="#CC0000"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </asp:Panel>
                    <table cellpadding="5px" cellspacing="10px">
                        <tr>
                            <td>
                                <asp:ImageButton ID="ImageButton1" runat="server" 
                                    ImageUrl="/Images/icon/search.png" onclick="ImageButton1_Click" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtSearch" runat="server" Width="672px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="/Images/icon/Add.png"
                                    OnClick="ImageButton2_Click" />
                            </td>
                            <td>
                                <asp:Label ID="lblPage" runat="server" ForeColor="#CC0000"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <hr />
                    <asp:GridView ID="gvShow" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        OnRowCommand="gvShow_RowCommand" CellPadding="4" Width="100%" BackColor="White"
                        BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" OnPageIndexChanging="gvShow_PageIndexChanging">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="noidungadmin">
                                        <img src="<%# Eval("img") %>" height="100px" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="noidungadmin">
                                        <b>Tiêu đề:</b>
                                        <%# Eval("title") %>(ID:<%# Eval("ID") %>)<br />
                                        <b>Trạng thái:</b>
                                        <%# Eval("trangthai") %>
                                        <br />
                                        <b>Size:</b>
                                        <%# Eval("sizebanner") %>
                                        <br />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="noidungadmin">
                                        <asp:ImageButton ID="btnEdit" CommandName="cmdEdit" CommandArgument='<%# Eval("Id") %>'
                                            runat="server" ImageUrl="/Images/icon/gtk-edit.png" />
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:ImageButton ID="btnRemove" Text="Xoá" CommandName="cmdRemove" CommandArgument='<%# Eval("Id") %>'
                                            runat="server" ImageUrl="/Images/icon/delete.png" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    </asp:GridView>
                </div>
            </div>
            <!--end auto-->
        </div>
        <!--end sanpham_vc-->
        <!--end footer_bt-->
        <uc3:Footer ID="Footer1" runat="server" />
    </div>
    <!--end wp100-->
    </form>
</body>
</html>
